package com.kang.mapper;

import com.kang.pojo.Users;
import org.apache.ibatis.annotations.Param;

/**
* @author 吃三明治派对中的康康
* @description 针对表【users】的数据库操作Mapper
* @createDate 2022-04-25 19:16:28
* @Entity com.kang.pojo.Users
*/
public interface UsersMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Users record);

    int insertSelective(Users record);

    Users selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);

    //邮箱登录
    Users searchByEmailAndPasswordUsers(@Param(value = "username") String username,@Param(value = "password")String password);

    //手机号登录
    Users searchByMobileAndPasswordUsers(@Param(value = "username")String username,@Param(value = "password")String password);

}
